package com.Smart.smartscals.Entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.apache.http.NameValuePair;


import android.content.Context;

/**
 * 下載要帶入的參數；
 * 
 * @author hb
 * 
 */
public class EntityDowload {
	private String mDownLoadUrl;
	// 0:get 1:post;
	private int mRequestMethod;
	// 要传递的参数;
	private ArrayList<EntityParmToNet> arrEntityParmToNets;
	// 0:httpUrlConnection 1:HttpClient;
	private int mAPIType;
	// 保存文件的路径；
	private String savePath;// 文件要存在SD卡的目錄，比如 xxSdCard/Tencet/QQ/UpdatePackage/

	private Context mContext;

	public String getmDownLoadUrl() {
		return mDownLoadUrl;
	}

	public void setmDownLoadUrl(String mDownLoadUrl) {
		this.mDownLoadUrl = mDownLoadUrl;
	}

	public int getmRequestMethod() {
		return mRequestMethod;
	}

	public void setmRequestMethod(int mRequestMethod) {
		this.mRequestMethod = mRequestMethod;
	}

	public int getmAPIType() {
		return mAPIType;
	}

	public void setmAPIType(int mAPIType) {
		this.mAPIType = mAPIType;
	}

	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}

	public ArrayList<EntityParmToNet> getArrEntityParmToNets() {
		return arrEntityParmToNets;
	}

	public void setArrEntityParmToNets(
			ArrayList<EntityParmToNet> arrEntityParmToNets) {
		this.arrEntityParmToNets = arrEntityParmToNets;
	}

	/**
	 * 
	 * @param mDownLoadUrl
	 *            下载地址
	 * @param mRequestMethod
	 *            请求方法 0：get 1:post
	 * @param arrEntityParmToNets
	 *            要提交的参数 没有的话传 null
	 * @param mAPIType
	 *            调用的API 0：HttpUrlConnection 1：HttpClient
	 * @param savePath
	 *            调用的存储路径
	 * @param context
	 */
	public EntityDowload(Context mContext, String mDownLoadUrl,
			int mRequestMethod, ArrayList<EntityParmToNet> arrEntityParmToNets,
			int mAPIType, String savePath) {
		super();
		this.mDownLoadUrl = mDownLoadUrl;
		this.mRequestMethod = mRequestMethod;
		this.arrEntityParmToNets = arrEntityParmToNets;
		this.mAPIType = mAPIType;
		this.savePath = savePath;
		this.mContext = mContext;
	}


}
